﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public delegate void TouchActions(object sender, TouchEventArgs e);

public class TouchEventArgs : EventArgs
{
	private Touch TouchEvent;
	private int index;
	public virtual int Index
	{
		get { return index; }
	}

	public virtual Vector2 deltaPosition
	{
		get { return TouchEvent.deltaPosition; }
	}

	public virtual float deltaTime
	{
		get { return TouchEvent.deltaTime; }
	}

	public virtual int fingerid
	{
		get { return TouchEvent.fingerId; }
	}

	public virtual int tapCount
	{
		get { return TouchEvent.tapCount; }
	}

	public virtual Vector2 position
	{
		get { return TouchEvent.position; }
	}

	public virtual TouchPhase phase
	{
		get { return TouchEvent.phase; }
	}

	public TouchEventArgs(Touch touch,int index)
	{
		TouchEvent = touch;
		this.index = index;
	}
}
